//调用接口配置文件
import { request } from 'config/request'
// 定义接口

export async function getGameTypeList(params) {
    return request({
        url: 'mideadc-game-center-service/activity/gameActivityType/list',
        method: 'GET',
        data: params,
    });
};


export async function delGameList(params) {
    return request({
        url: 'mideadc-game-center-service/activity/gameActivity/delete',
        method: 'DELETE',
        data: params,
    });
};


export async function release(params) {
    return request({
        url: 'mideadc-game-center-service/activity/gameActivity/release',
        method: 'PUT',
        data: params,
    });
};

export async function generateQrCode(params) {
    return request({
        url: 'admin/wx/generateQrCode',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};

export async function activityCancel(params) {
    return request({
        url: 'mideadc-game-center-service/activity/gameActivity/cancel',
        method: 'PUT',
        data: params,
    });
};